﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace ZLDC.Topo.BLL
{
    public class T_s_pdmBLL
    {
         /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static DataTable GetT_s_pdmParentMenu()
        {
            return ZLDC.DAL.T_s_pdmDAL.GetT_s_pdmParentMenu();
        }

        /// <summary>
        /// 返回可操作权限
        /// </summary>
        /// <param name="EmpID"></param>
        /// <param name="strWhere"></param>
        /// <returns></returns>
        public static DataTable GetPdmListByEmp(string EmpID, string strWhere)
        {
            return ZLDC.DAL.T_s_pdmDAL.GetPdmListByEmp(EmpID, strWhere);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static DataTable GetT_s_pdmAllParentMenu(string strWhere)
        {
            return ZLDC.DAL.T_s_pdmDAL.GetT_s_pdmAllParentMenu(strWhere);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="strMdl"></param>
        /// <returns></returns>
        public static DataTable GetT_s_pdmByMdl(string strMdl)
        {
            return ZLDC.DAL.T_s_pdmDAL.GetT_s_pdmByMdl(strMdl);
        }


        /// <summary>
        /// 
        /// </summary>
        /// <param name="strMdl"></param>
        /// <returns></returns>
        public static DataTable GetT_s_pdmList(string strWhere)
        {
            return ZLDC.DAL.T_s_pdmDAL.GetT_s_pdmList(strWhere);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static DataTable GetPagerT_s_RoleList(string strWhere, int currentPage, int pagesize, out int recordcount)
        {
            return ZLDC.DAL.T_s_pdmDAL.GetPagerT_s_RoleList(strWhere, currentPage, pagesize, out recordcount);
        }

        /// <summary>
        /// 角色
        /// </summary>
        /// <param name="RoleID"></param>
        /// <param name="pdm"></param>
        public static void UpdateRolePdm(string RoleID, string pdm)
        {
             ZLDC.DAL.T_s_pdmDAL.UpdateRolePdm(RoleID, pdm);
        }

         /// <summary>
        /// 查询角色
        /// </summary>
        /// <param name="strWhere"></param>
        /// <returns></returns>
        public static DataTable GetRoleList(string strWhere)
        {
            return ZLDC.DAL.T_s_pdmDAL.GetRoleList(strWhere);
        }

        /// <summary>
        /// 插入角色
        /// </summary>
        /// <param name="Name"></param>
        /// <param name="dsc"></param>
        public static void InsertRole(string Name, string dsc,string RoleCode,string pdm)
        {
             ZLDC.DAL.T_s_pdmDAL.InsertRole(Name,dsc,RoleCode,pdm);
        }

        /// <summary>
        /// 更新角色
        /// </summary>
        /// <param name="Name"></param>
        /// <param name="dsc"></param>
        /// <param name="RoleID"></param>
        public static void UpdateRole(string Name, string dsc,string RoleCode, string RoleID)
        {
            ZLDC.DAL.T_s_pdmDAL.UpdateRole(Name, dsc,RoleCode, RoleID);
        }

        /// <summary>
        /// 删除角色
        /// </summary>
        /// <param name="RoleID"></param>
        public static void DeleteRoel(string RoleID)
        {
            ZLDC.DAL.T_s_pdmDAL.DeleteRole(RoleID);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="RoleID"></param>
        public static void DeleteT_s_Role_EmployeeByRoleID(string RoleID)
        {
            ZLDC.DAL.T_s_pdmDAL.DeleteT_s_Role_EmployeeByRoleID(RoleID);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="RoleID"></param>
        /// <param name="EmpID"></param>
        public static void DeleteT_s_Role_EmployeeByRoleIDandEmpID(string RoleID, string EmpID)
        {
            ZLDC.DAL.T_s_pdmDAL.DeleteT_s_Role_EmployeeByRoleIDandEmpID(RoleID, EmpID);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="RoleID"></param>
        /// <param name="EmpID"></param>
        public static void DeleteT_s_Employee_DeptByEmpIDandDeptID(string EmpID, string DeptID)
        {
            ZLDC.DAL.T_s_pdmDAL.DeleteT_s_Employee_DeptByEmpIDandDeptID(EmpID, DeptID);
        }

        public static void InsertT_s_Role_Employee(string RoleID, string EmpID)
        {
            ZLDC.DAL.T_s_pdmDAL.InsertT_s_Role_Employee(RoleID, EmpID);
        }

        public static void CopyRole(string RoleID)
        {
            ZLDC.DAL.T_s_pdmDAL.CopyRole(RoleID);
        }

        public static DataTable GetOrg_UnitList(string strWhere, int currentPage, int pagesize, out int recordcount)
        {
            return ZLDC.DAL.T_s_pdmDAL.GetOrg_UnitList( strWhere,  currentPage,  pagesize,  out recordcount);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="strWhere"></param>
        /// <returns></returns>
        public static DataTable GetT_s_Employee_DeptList(string strWhere)
        {
            return ZLDC.DAL.T_s_pdmDAL.GetT_s_Employee_DeptList(strWhere);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="EmpID"></param>
        /// <param name="DeptID"></param>
        public static void InsertT_s_Employee_Dept(string EmpID, string DeptID,string StrType)
        {
            ZLDC.DAL.T_s_pdmDAL.InsertT_s_Employee_Dept(EmpID, DeptID,StrType);
        }
    }
}
